package lcr;

public class Test0139 {
}

class Solution0139_1 {
    public int[] trainingPlan(int[] actions) {
        int length = actions.length;
        int index = 0;
        for (int i = 0; i < length; i++) {
            int action = actions[i];
            if ((action&1)==1){
                actions[i]=actions[index];
                actions[index++] = action;
            }
        }

        return actions;

    }
}
